package com.xsd.awen.service;

import com.xsd.awen.domain.po.ViewProjectPo;
import com.xsd.awen.domain.po.ViewUserPo;
import com.xsd.awen.domain.vo.ViewVo;
import com.xsd.awen.mapper.ViewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Scope(proxyMode= ScopedProxyMode.TARGET_CLASS)
public class ViewService {

    @Autowired
    ViewMapper viewMapper;


    public List<ViewProjectPo> project(ViewVo vo){
        return viewMapper.project(vo);
    }

    public List<ViewUserPo> user(ViewVo vo){
        return viewMapper.user(vo);
    }


}
